package com.cyq.stock.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "stock-service", path = "/stock")
public interface StockFeignService {

    @GetMapping("/reduct")
    String reduct();
}

/*
@RestController
@RequestMapping("/stock")
public class StockController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/reduct")
    public String reduct() {
        System.out.println("扣减库存!");
        return "扣减库存" + port;
    }
}*/
